#include <iostream>

#include <boost/scope_exit.hpp>
#include <cstdlib>
#include <cstdio>
#include <cassert>

int main() {
	std::FILE* f = std::fopen("example_file.txt", "w");
	
	BOOST_SCOPE_EXIT(f) {
		std::cout << "==== 1 ====" << std::endl;
		std::fclose(f);
	} BOOST_SCOPE_EXIT_END;

	throw 1;
	return 0;
}